/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package  com.fenxiangle.yueding.feature.focus.contract;

import com.fenxiangle.yueding.entity.bo.FoucsListBo;
import com.fenxiangle.yueding.entity.bo.PageBo;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface FocusContract {

    interface Model {


        Observable<List<FoucsListBo>> getOrderList(PageBo pageBo);

    }

    interface View extends BaseView {


        void showOrderListSuccess(List<FoucsListBo> workBoPageData);

        void showOrderListError(String error);

        void showOrderListMoreSuccess(List<FoucsListBo> msg);

        void showOrderListMoreError(String msg);

        void showOrderListEmpty();
    }


    interface Presenter extends BasePresenter {

        void getOrderList(
                int pageIndex,
                int pageSize
        );

        void getOrderListMore(

                int pageIndex,
                int pageSize
        );
    }
}
